
package com.feib.soeasy.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.soeasy.dao.UserActionLogDao;
import com.feib.soeasy.model.UserActionLog;
import com.feib.soeasy.pagination.PaginatedList;
import com.feib.soeasy.service.UserActionLogService;


/**
 * @title (#)UserActionLogServiceImpl.java<br>
 * @description <br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2010/12/6 create by Jimmy Liu<br>
 */
@Service("userActionLogService")
public class UserActionLogServiceImpl extends BaseServiceImpl implements UserActionLogService {

    @Resource(name="userActionLogDao")
    private UserActionLogDao userActionLogDao;

    /* (non-Javadoc)
     * @see com.feib.soeasy.service.UserActionLogService#addUserActionLog(com.feib.soeasy.model.UserActionLog)
     */
    @Override
    public UserActionLog addUserActionLog(UserActionLog userActionLog) {
        return userActionLogDao.save(userActionLog);
    }

    /* (non-Javadoc)
     * @see com.feib.soeasy.service.UserActionLogService#queryByUserActionLog(com.feib.soeasy.model.UserActionLog, java.util.Date, java.util.Date, com.feib.soeasy.pagination.PaginatedList)
     */
    @Override
    public PaginatedList<UserActionLog> queryByUserActionLog(UserActionLog qryUserActionLog, Date qryInDateFrom, Date qryInDateTo, List<String> actionBeans, PaginatedList<UserActionLog> queryResult) {
        return userActionLogDao.findByUserActionLog(qryUserActionLog, qryInDateFrom, qryInDateTo, actionBeans, queryResult);
    }

}
